package com.ticket.sass.common.entity.tenant.enums

import com.baomidou.mybatisplus.annotation.IEnum

enum class MemberCardOrderRecordType(private val value: Short, val tips: String) : IEnum<Short> {
    RECHARGE(1, "充值"),
    TICKET(2, "购票"),
    COMMODITY(3, "卖品"),
    REFUND(4, "退款"),
    RECHARGE_GIFT(5, "充值赠送"),
    FROZEN_AMOUNT(6, "冻结金额"),
    FROZEN_AMOUNT_REFUND(7, "冻结金额退回"),
    GROUP_PURCHASE_TICKET(8, "拼单");

    override fun getValue(): Short {
        return value
    }

    companion object {
        fun valueOf(v: Short) = values().find { it.value == v } ?: error("未匹配到枚举")
    }
}